import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/pages/Home.vue'

export default createRouter({
    history: createWebHistory(),
    routes: [
        {
            name: 'home',
            path: '/',
            component: Home
        },
        {
            name: 'friends',
            path: '/friends',
            component: () => import('@/pages/Friends.vue')
        },
        {
            path: '/:pathMatch(.*)*',
            redirect: '/'
        }
    ]
})